<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 86151
  Date: 2023/4/8
  Time: 11:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="/goods/queryByName" method="post">
    <input type="text" name="name" placeholder="query by name">  <input type="submit" value="search">
</form>
<p style="color: red">${sessionScope.error}</p>
<c:forEach var="good" items="${sessionScope.goods}" >
    <a href="/goods/queryByNameGet/${good.name}">${good.name}</a>
    <br>
</c:forEach>
</body>
</html>
